﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-03-19 19:23
    /// 描 述：广告管理实体类
    /// </summary>
    [Table("advertisement")]
    public class AdvertisementEntity : BaseEntity
    {
        /// <summary>
        /// 广告名称1
        /// </summary>
        /// <returns></returns>
        public string advertisement_name { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        /// <returns></returns>
        public string advertisement_url { get; set; }
        /// <summary>
        /// 状态 0 启用;1下架
        /// </summary>
        /// <returns></returns>
        public int? advertisement_status { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        /// <returns></returns>
        public int? advertisement_sort { get; set; }
        /// <summary>
        /// 是否删除 0否;1是
        /// </summary>
        /// <returns></returns>
        public int? is_delete { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? create_time { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? modified_time { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        /// <returns></returns>
        public string desc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? shopid { get; set; }

        public int? type { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? SysNewsId { get; set; }

        public int? IsActivity { get; set; }

        public string url { get; set; }

        public int? sort { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? knowledgepostsId { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? coursesId { get; set; }
    }
}
